﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using digitwhu.Logic.BusinessLogicControl;

namespace digitwhu.Controllers
{
    public class TeachController : Controller
    {
        //教室信息列表
        public String GetClassList(String buildingId)
        {
            return BuildingLogicControl.GetTeachRoomHavingClass(buildingId);
        }

        //增加留言
        public String AddMessage(String buildingId,String userId,String contents)
        {
            return BuildingLogicControl.AddTeachMessage(buildingId, userId, contents);
        }
        //留言列表
        public String GetMessageList(String buildingId)
        {
           return BuildingLogicControl.GetTeachMessage(buildingId);
        }

    }
}
